<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
/* <![CDATA[ */


table, td
{
    border-color: #666;
    border-style: solid;
}
table, th
{
    border-color: #666;
    border-style: solid;
}

table
{
    border-width: 0 0 1px 1px;
    border-spacing: 0;
    border-collapse: collapse;
}

td
{
    margin: 0;
    padding: 8px;
    border-width: 1px 1px 0 0;
}
th
{
    margin: 0;
    padding: 8px;
    border-width: 1px 1px 0 0;
}

#label{
	padding-top: -7px;
	padding-left: -10px;
	margin-top: -8px;
	margin-left: -8px;
}
#label2{
	padding-top: -10px;
	padding-right: -10px;
	margin-top: -10px;
	margin-right: -8px;
	
}

/* ]]> */
</style>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Untitled Document</title>
</head>
<form method = 'post' action = '' enctype="multipart/form-data">
<body style="font-family:Arial, Helvetica, sans-serif">

<input type = "checkbox" name = "tuesday_checkbox" id = "tuesday_checkbox">Tuesday</input>
<input type = "checkbox" name = "wednesday_checkbox" id = "wednesday_checkbox">Wednesday</input>
<input type = "checkbox" name = all_checkbox" id = "all_checkbox">All</input>
<input type = "submit" name = "submit" id = "submit" value = "submit"></input>
<table>
	<tr>
		<td>Shop</td>
		<?php 
		date_default_timezone_set("Australia/Melbourne");
		$dateBegin = reset($this->dateArr);
		$dateEnd = end($this->dateArr);
		$date = ((strtotime($dateEnd) - strtotime($dateBegin))/86400);

		foreach($this->dateArr as $dtc){?>
		<td style="font-size:10px;"> <?php echo $dtc; echo "    [".date("D",strtotime($dtc))."]"; ?>
    </td>
		<?php }?>
	</tr>
	<?php 
		foreach($this->arrCaList as $shop =>$v) { ?>
			<tr>
			<td height="15" style="font-size:10px;"><?php echo $shop?></td>
				<?php foreach($v["detail"] as $key=> $vd){?>    
			<td style="font-size:10px;" align=left valign=top height="15"<?php echo ($vd[0] >0 && $vd[1]!=1 && $vd[1]!=2 && $vd[1]!=3 ); ?>  ><div id = "label"><?php echo ($vd[0] > 0)?" $ {$vd[0]}":" - ";?></div><div id = "label2" align="right";><input type = 'checkbox'></input></div></td>
			<?php }?>
			
			</tr>
  <?php }?>
</table>


</body>
</form>
</html>
